package com.he.config;

/**
 * 钉钉开放接口网关常量
 */
public class UrlConstant {
    private static final String HOST = "https://oapi.dingtalk.com";

    /**
     * 获取access_token url
     */
    public static final String URL_GET_TOKEN = HOST + "/gettoken";

    /**
     * 获取jsapi_ticket url
     */
    public static final String URL_GET_JSTICKET = HOST + "/get_jsapi_ticket";

    /**
     * 通过免登授权码获取用户信息 url
     */
    public static final String URL_GET_USER_INFO = HOST + "/user/getuserinfo";

    /**
     * 根据用户id获取用户详情 url
     */
    public static final String URL_USER_GET = HOST + "/user/get";

    /**
     * 获取部门列表 url
     */
    public static final String URL_DEPARTMENT_LIST = HOST + "/department/list";
    public static final String URL_V2_DEPARTMENT_LIST = HOST + "/topapi/v2/department/listsub";

    /**
     * 获取部门用户 url
     */
    public static final String URL_USER_SIMPLELIST = HOST + "/user/simplelist";


    /**
     * 获取子部门ID列表  url
     */
    public static final String URL_V2_DEPARTMENT_LISTSUBID = HOST + "/topapi/v2/department/listsubid";

    /**
     * 获取父部门id列表 url
     */
    public static final String URL_DEPID_PARENT_LIST = HOST + "/department/list_parent_depts_by_dept";
    public static final String URL_V2_DEPID_PARENT_LIST = HOST + "/topapi/v2/department/listparentbydept";

    /**
     * 获取部门用户详情列表接口 url
     */
    public static final String URL_USER_BYPAGE_LIST = HOST + "/user/listbypage";
    public static final String URL_V2_USER_LIST = HOST + "/topapi/v2/user/list";


}
